﻿<script type="text/javascript">
    $(function () {
        //弹窗弹出
        var dialogInit = function () {
            var d = manage.dialog({
                title: "全局设置", width: 600,
                iconCls: "icon-computer-keyboard",
                href: "/basic/setting/page",
                bodyCls: "theme-container",
                handler: function () {
                    manage.form({
                        dialog: d, formid: "#dform",
                        url: "/basic/setting/global",
                        success: function (result) { }
                    });
                },
                onLoad: function () { formInit(); },
                onClose: function () { UE.getEditor('iptCopyright').destroy(); }
            });
        }();
        //弹窗初始化
        var formInit = function () {
            $("#iptDefRole").combobox({
                required: true,
                editable: false,
                url: "/basic/role/allgrid",
                valueField: "ID", textField: "Name"
            });
            manage.initEditor("iptCopyright", "100%", 150);
        };
    });
</script>